/**
 * @filename:PurReturnService Jan 23, 2025
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import com.wonder.app.domain.PurReturn;
import com.wonder.app.domain.Warehouse;
import com.wonder.app.request.PurReturnRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Map;
/**   
 * @Description:TODO(采购退料服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface PurReturnService extends IService<PurReturn> {

    
    /**
     * 验证采购退料信息
     * 
     * @param purReturn
     * @param type
     * @return 结果
     */
    public String validate(PurReturn purReturn,String type);   
   
	
	 /**
	 * Description:采购退料分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<PurReturn>   //分页记录
	 */
    public IPage<PurReturn> selectList(PurReturnRequest request, Page<PurReturn> page);


	/**
	 * 采购退料单列表(手机端)
	 * @param map
	 * @return
	 */
	Map<String, Object> getPurReturnList(Map<String, Object> map);

	/**
	 * 采购退料单详情
	 * @param map
	 * @return
	 */
	Map<String, Object> getPurReturnDetail(Map<String, Object> map);

	/**
	 * 审核采购退料单
	 * @param map
	 * @return
	 */
	Boolean auditPurReturn(Long user_id, Map<String, Object> map,String userName) throws Exception;


	/**
	 * 详情purin
	 * @param map
	 * @return
	 */
	Map<String, Object> getPurRetDetail(Map<String, Object> map) throws Exception;
}
